import {fromJS} from "immutable"


const defaultState=fromJS({
    count:2088,
    collapsed:false,
})

export const data=(state=defaultState,action)=>{
    const {type,payload}=action
    switch(type){
        case "changecollapsed":
        return state.set("collapsed",payload);
        break;


        default:
        return state;
        break;
    }
}